<template>
	<view>
		<web-view :src="src"></web-view>
	</view>
</template>

<script>
	export default {
		data() {
			return {
				src: ''
			}
		},
		onLoad(e) {
			var token = uni.getStorageSync('token');
			switch (e.type) {
				case "add": //添加会员
					uni.setNavigationBarTitle({
						title: '添加会员'
					})
					this.src = this.$config.hosts + this.$config.UrlPostuseradd + "?token=" + token
					break;
				case 'user':
					uni.setNavigationBarTitle({
						title: '会员管理'
					})
					this.src = this.$config.hosts + this.$config.UrlPostuserindex + "?token=" + token
					break;
				case 'kecheng':
					uni.setNavigationBarTitle({
						title: '课程管理'
					})
					this.src = this.$config.hosts + this.$config.UrlPostcourseindex + "?token=" + token
					break;
				case 'daiyueke':
					uni.setNavigationBarTitle({
						title: '代约课'
					})
					this.src = this.$config.hosts + this.$config.UrlPostusercourse + "?token=" + token
					break;
				case 'shujutongji':
					uni.setNavigationBarTitle({
						title: '数据统计'
					})
					this.src = this.$config.hosts + this.$config.UrlPoststatis + "?token=" + token
					break;
				case 'tiyan':
					uni.setNavigationBarTitle({
						title: '体验预约列表'
					})
					this.src = this.$config.hosts + this.$config.UrlPostuyuyue + "?token=" + token
					break;
				case 'paike':
					uni.setNavigationBarTitle({
						title: '排课管理'
					})
					this.src = this.$config.hosts + this.$config.UrlPostpaiban + "?token=" + token
					break;
			}

		},
		methods: {

		}
	}
</script>

<style>

</style>
